import request from "./api.js"
export default {
	getDownloadPath(params, success, failure) {
		return request.get('app/getDownloadPath',params, success, failure);
	},
	getInvestDetail(params, success, failure){
		return request.get('item/introduction',params, success, failure);
	},
	getTimeRule(params, success, failure){
		return request.get('user/coupon/time',params, success, failure);
	},
	getFixedRule(params, success, failure){
		return request.get('user/coupon/fixed',params, success, failure);
	},
	//使用新春劵
	useRedCoupon(params, success, failure){
		return request.post('user/activity/useCoupon',params, success, failure);
	},
	//使用活期加息劵
	useCoupon(params, success, failure){
		return request.post('user/coupon/useTimeCoupon',params, success, failure);
	},
	//pdf版投资协议
//	getProtocolInvest(params, success, failure){
//		return request.get('user/item/contract',params, success, failure);
//	}
	//文本投资协议
	getProtocolInvest(params, success, failure){
		return request.get('/item/protocol',params, success, failure);
	},
	//获取投资列表
	getProjectList(params, success, failure){
		return request.get('/item/list',params, success, failure);
	},
	//获取活期项目详情（包括已申购和未申购）
	getCurrentDetail(params, success, failure){
		return request.get('/item/time',params, success, failure);
	},
	//用户状态(是否绑卡、设置交易密码)
	getUserState(params, success, failure){
		return request.get('/user/tradeValidation',params, success, failure);
	},
	//注册时检验手机号是否被注册
	getCheckUser(params, success, failure){
		return request.get('/ope/checkUserExist',params, success, failure);
	},
	//获取指定手机验证码
	getPhoneMsg(params, success, failure){
		return request.post('/sms/send',params, success, failure);
	},
	//我的资产
	getMyItems(params, success, failure){
		return request.get('/user/item/myItems',params, success, failure);
	},
	//首页信息
	getIndex(params, success, failure){
		return request.get('/app/index',params, success, failure);
	},
	//项目信息
	getItemDetail(params, success, failure){
		return request.get('/item/info',params, success, failure);
	},
	//投资用户列表
	getUserList(params, success, failure){
		return request.get('/item/investUsers',params, success, failure);
	},
	//获取用户绑定的银行卡
	getUserBank(params, success, failure){
		return request.get('/user/bankCard/get',params, success, failure);
	},
	//积分商城首页
	getIntegral(params, success, failure){
		return request.get('/user/integralMallInfo',params, success, failure);
	},
	//积分兑换记录
	getRecord(params, success, failure){
		return request.get('/user/exchangeHistory',params, success, failure);
	},
	//积分明细
	getIntegralHis(params, success, failure){
		return request.get('/user/integralHistory',params, success, failure);
	},
	//获取现金券
	getCash(params, success, failure){
		return request.get('/user/coupon/redPacketCoupons',params, success, failure);
	},
	//获取奖池金额
	getMoney(params, success, failure){
		return request.get('/activity/info',params, success, failure);
	},
	//天梯排行榜
	getRank(params, success, failure){
		return request.get('/activity/rank',params, success, failure);
	}
}